<template>
    <div>
        糖尿病类型：{{healthInformation.type}}
        确诊时间:{{healthInformation.timeOfDiagnosis}}
        风险等级：{{healthInformation.level}}
    </div>
</template>

<script>
    export default {
        name: "jiankanxinxi",
        data(){
            return{
                healthInformation:{},

            }
        },
        mounted() {
            this.healthInformation = this.healthy;
        },
        props:{
            healthy: {
                type: Object,
                props: () => {},
            },
        },
        watch: {
            healthy: {
                handler:function (newVal) {
                    if (newVal === "") {
                        this.healthInformation = {}
                        return
                    }
                    this.healthInformation = newVal;
                },
            }, deep: true
        }
    }
</script>

<style scoped>

</style>
